<template>
    <div class="home">
       <mt-swipe :auto="4000" >
            <mt-swipe-item v-for="item in swipeList" :key="item.id">
                <img :src="item.img" alt="">
            </mt-swipe-item>
        </mt-swipe>
        <div class="mui-content">
            <ul class="mui-table-view mui-grid-view mui-grid-9">
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
                        <a href="#">
                            <img src="../assets/menu1(1).png" alt="">
                            <p>新闻资讯</p>
                        </a>
                        </li>
		           <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
                        <a href="#">
                            <img src="../assets/menu2.png" alt="">
                            <p>图片分享</p>
                        </a>
                        </li>
		           <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
                        <a href="#">
                            <img src="../assets/menu3.png" alt="">
                            <p>商品购买</p>
                        </a>
                        </li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
                        <a href="#">
                            <img src="../assets/menu4.png" alt="">
                            <p>留言反馈</p>
                        </a>
                        </li>
		           <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
                        <a href="#">
                            <img src="../assets/menu5.png" alt="">
                            <p>视频专区</p>
                        </a>
                        </li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
                        <a href="#">
                            <img src="../assets/menu6.png" alt="">
                            <p>联系我们</p>
                        </a>
                        </li>
                </ul>
        </div>
    </div>
</template>
<script>
import {swipeKK} from "@/api/index"
export default {
    data(){
        return{
           swipeList:[]
        }
    },
    created(){
      this.initSwipe();
    },
    methods:{
        initSwipe(){
           swipeKK().then(res=>{
               if(res.status == 0){
                   this.swipeList = res.message
               }else{
                   Toast("加载轮播图失败。。。。")
               }
            //    console.log(res);
           }) 
        }
    }
}
</script>
<style lang="scss" scoped>
.mint-swipe {
  height: 200px;
  width:100%;
  .mint-swipe-item {
    width:100%;
    img {
      width: 100%;
      height: 100%;
    }
  }
}
.mui-grid-9 {
  background-color: #fff;
  border: none;
  img {
    width: 60px;
    height: 60px;
  }

  p{
    font-size: 13px;
  }
}

.mui-grid-view.mui-grid-9 .mui-table-view-cell {
  border: 0;
}
</style>


